Integrand size = 33, antiderivative size = 194 \[ \int \cos ^2(c+d x) (a+a \cos (c+d x))^2 \left (A+C \cos ^2(c+d x)\right ) \, dx=\frac {1}{16} a^2 (14 A+11 C) x+\frac {2 a^2 (5 A+4 C) \sin (c+d x)}{5 d}+\frac {a^2 (14 A+11 C) \cos (c+d x) \sin (c+d x)}{16 d}+\frac {a^2 (10 A+9 C) \cos ^3(c+d x) \sin (c+d x)}{40 d}+\frac {C \cos ^3(c+d x) (a+a \cos (c+d x))^2 \sin (c+d x)}{6 d}+\frac {C \cos ^3(c+d x) \left (a^2+a^2 \cos (c+d x)\right ) \sin (c+d x)}{15 d}-\frac {2 a^2 (5 A+4 C) \sin ^3(c+d x)}{15 d} \]
1/16*a^2*(14*A+11*C)*x+2/5*a^2*(5*A+4*C)*sin(d*x+c)/d+1/16*a^2*(14*A+11*C) *cos(d*x+c)*sin(d*x+c)/d+1/40*a^2*(10*A+9*C)*cos(d*x+c)^3*sin(d*x+c)/d+1/6 *C*cos(d*x+c)^3*(a+a*cos(d*x+c))^2*sin(d*x+c)/d+1/15*C*cos(d*x+c)^3*(a^2+a ^2*cos(d*x+c))*sin(d*x+c)/d-2/15*a^2*(5*A+4*C)*sin(d*x+c)^3/d
Time = 0.31 (sec) , antiderivative size = 123, normalized size of antiderivative = 0.63 \[ \int \cos ^2(c+d x) (a+a \cos (c+d x))^2 \left (A+C \cos ^2(c+d x)\right ) \, dx=\frac {a^2 (420 c C+840 A d x+660 C d x+240 (6 A+5 C) \sin (c+d x)+15 (32 A+31 C) \sin (2 (c+d x))+160 A \sin (3 (c+d x))+200 C \sin (3 (c+d x))+30 A \sin (4 (c+d x))+75 C \sin (4 (c+d x))+24 C \sin (5 (c+d x))+5 C \sin (6 (c+d x)))}{960 d} \]
(a^2*(420*c*C + 840*A*d*x + 660*C*d*x + 240*(6*A + 5*C)*Sin[c + d*x] + 15* (32*A + 31*C)*Sin[2*(c + d*x)] + 160*A*Sin[3*(c + d*x)] + 200*C*Sin[3*(c + d*x)] + 30*A*Sin[4*(c + d*x)] + 75*C*Sin[4*(c + d*x)] + 24*C*Sin[5*(c + d *x)] + 5*C*Sin[6*(c + d*x)]))/(960*d)
Time = 1.17 (sec) , antiderivative size = 193, normalized size of antiderivative = 0.99, number of steps used = 17, number of rules used = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.485, Rules used = {3042, 3525, 3042, 3455, 27, 3042, 3447, 3042, 3502, 3042, 3227, 3042, 3113, 2009, 3115, 24}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \cos ^2(c+d x) (a \cos (c+d x)+a)^2 \left (A+C \cos ^2(c+d x)\right ) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \sin \left (c+d x+\frac {\pi }{2}\right )^2 \left (a \sin \left (c+d x+\frac {\pi }{2}\right )+a\right )^2 \left (A+C \sin \left (c+d x+\frac {\pi }{2}\right )^2\right )dx\) |
\(\Big \downarrow \) 3525 |
\(\displaystyle \frac {\int \cos ^2(c+d x) (\cos (c+d x) a+a)^2 (3 a (2 A+C)+2 a C \cos (c+d x))dx}{6 a}+\frac {C \sin (c+d x) \cos ^3(c+d x) (a \cos (c+d x)+a)^2}{6 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\int \sin \left (c+d x+\frac {\pi }{2}\right )^2 \left (\sin \left (c+d x+\frac {\pi }{2}\right ) a+a\right )^2 \left (3 a (2 A+C)+2 a C \sin \left (c+d x+\frac {\pi }{2}\right )\right )dx}{6 a}+\frac {C \sin (c+d x) \cos ^3(c+d x) (a \cos (c+d x)+a)^2}{6 d}\) |
\(\Big \downarrow \) 3455 |
\(\displaystyle \frac {\frac {1}{5} \int 3 \cos ^2(c+d x) (\cos (c+d x) a+a) \left ((10 A+7 C) a^2+(10 A+9 C) \cos (c+d x) a^2\right )dx+\frac {2 C \sin (c+d x) \cos ^3(c+d x) \left (a^3 \cos (c+d x)+a^3\right )}{5 d}}{6 a}+\frac {C \sin (c+d x) \cos ^3(c+d x) (a \cos (c+d x)+a)^2}{6 d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\frac {3}{5} \int \cos ^2(c+d x) (\cos (c+d x) a+a) \left ((10 A+7 C) a^2+(10 A+9 C) \cos (c+d x) a^2\right )dx+\frac {2 C \sin (c+d x) \cos ^3(c+d x) \left (a^3 \cos (c+d x)+a^3\right )}{5 d}}{6 a}+\frac {C \sin (c+d x) \cos ^3(c+d x) (a \cos (c+d x)+a)^2}{6 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {3}{5} \int \sin \left (c+d x+\frac {\pi }{2}\right )^2 \left (\sin \left (c+d x+\frac {\pi }{2}\right ) a+a\right ) \left ((10 A+7 C) a^2+(10 A+9 C) \sin \left (c+d x+\frac {\pi }{2}\right ) a^2\right )dx+\frac {2 C \sin (c+d x) \cos ^3(c+d x) \left (a^3 \cos (c+d x)+a^3\right )}{5 d}}{6 a}+\frac {C \sin (c+d x) \cos ^3(c+d x) (a \cos (c+d x)+a)^2}{6 d}\) |
\(\Big \downarrow \) 3447 |
\(\displaystyle \frac {\frac {3}{5} \int \cos ^2(c+d x) \left ((10 A+9 C) \cos ^2(c+d x) a^3+(10 A+7 C) a^3+\left ((10 A+7 C) a^3+(10 A+9 C) a^3\right ) \cos (c+d x)\right )dx+\frac {2 C \sin (c+d x) \cos ^3(c+d x) \left (a^3 \cos (c+d x)+a^3\right )}{5 d}}{6 a}+\frac {C \sin (c+d x) \cos ^3(c+d x) (a \cos (c+d x)+a)^2}{6 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {3}{5} \int \sin \left (c+d x+\frac {\pi }{2}\right )^2 \left ((10 A+9 C) \sin \left (c+d x+\frac {\pi }{2}\right )^2 a^3+(10 A+7 C) a^3+\left ((10 A+7 C) a^3+(10 A+9 C) a^3\right ) \sin \left (c+d x+\frac {\pi }{2}\right )\right )dx+\frac {2 C \sin (c+d x) \cos ^3(c+d x) \left (a^3 \cos (c+d x)+a^3\right )}{5 d}}{6 a}+\frac {C \sin (c+d x) \cos ^3(c+d x) (a \cos (c+d x)+a)^2}{6 d}\) |
\(\Big \downarrow \) 3502 |
\(\displaystyle \frac {\frac {3}{5} \left (\frac {1}{4} \int \cos ^2(c+d x) \left (5 (14 A+11 C) a^3+16 (5 A+4 C) \cos (c+d x) a^3\right )dx+\frac {a^3 (10 A+9 C) \sin (c+d x) \cos ^3(c+d x)}{4 d}\right )+\frac {2 C \sin (c+d x) \cos ^3(c+d x) \left (a^3 \cos (c+d x)+a^3\right )}{5 d}}{6 a}+\frac {C \sin (c+d x) \cos ^3(c+d x) (a \cos (c+d x)+a)^2}{6 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {3}{5} \left (\frac {1}{4} \int \sin \left (c+d x+\frac {\pi }{2}\right )^2 \left (5 (14 A+11 C) a^3+16 (5 A+4 C) \sin \left (c+d x+\frac {\pi }{2}\right ) a^3\right )dx+\frac {a^3 (10 A+9 C) \sin (c+d x) \cos ^3(c+d x)}{4 d}\right )+\frac {2 C \sin (c+d x) \cos ^3(c+d x) \left (a^3 \cos (c+d x)+a^3\right )}{5 d}}{6 a}+\frac {C \sin (c+d x) \cos ^3(c+d x) (a \cos (c+d x)+a)^2}{6 d}\) |
\(\Big \downarrow \) 3227 |
\(\displaystyle \frac {\frac {3}{5} \left (\frac {1}{4} \left (16 a^3 (5 A+4 C) \int \cos ^3(c+d x)dx+5 a^3 (14 A+11 C) \int \cos ^2(c+d x)dx\right )+\frac {a^3 (10 A+9 C) \sin (c+d x) \cos ^3(c+d x)}{4 d}\right )+\frac {2 C \sin (c+d x) \cos ^3(c+d x) \left (a^3 \cos (c+d x)+a^3\right )}{5 d}}{6 a}+\frac {C \sin (c+d x) \cos ^3(c+d x) (a \cos (c+d x)+a)^2}{6 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {3}{5} \left (\frac {1}{4} \left (5 a^3 (14 A+11 C) \int \sin \left (c+d x+\frac {\pi }{2}\right )^2dx+16 a^3 (5 A+4 C) \int \sin \left (c+d x+\frac {\pi }{2}\right )^3dx\right )+\frac {a^3 (10 A+9 C) \sin (c+d x) \cos ^3(c+d x)}{4 d}\right )+\frac {2 C \sin (c+d x) \cos ^3(c+d x) \left (a^3 \cos (c+d x)+a^3\right )}{5 d}}{6 a}+\frac {C \sin (c+d x) \cos ^3(c+d x) (a \cos (c+d x)+a)^2}{6 d}\) |
\(\Big \downarrow \) 3113 |
\(\displaystyle \frac {\frac {3}{5} \left (\frac {1}{4} \left (5 a^3 (14 A+11 C) \int \sin \left (c+d x+\frac {\pi }{2}\right )^2dx-\frac {16 a^3 (5 A+4 C) \int \left (1-\sin ^2(c+d x)\right )d(-\sin (c+d x))}{d}\right )+\frac {a^3 (10 A+9 C) \sin (c+d x) \cos ^3(c+d x)}{4 d}\right )+\frac {2 C \sin (c+d x) \cos ^3(c+d x) \left (a^3 \cos (c+d x)+a^3\right )}{5 d}}{6 a}+\frac {C \sin (c+d x) \cos ^3(c+d x) (a \cos (c+d x)+a)^2}{6 d}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {\frac {3}{5} \left (\frac {1}{4} \left (5 a^3 (14 A+11 C) \int \sin \left (c+d x+\frac {\pi }{2}\right )^2dx-\frac {16 a^3 (5 A+4 C) \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}\right )+\frac {a^3 (10 A+9 C) \sin (c+d x) \cos ^3(c+d x)}{4 d}\right )+\frac {2 C \sin (c+d x) \cos ^3(c+d x) \left (a^3 \cos (c+d x)+a^3\right )}{5 d}}{6 a}+\frac {C \sin (c+d x) \cos ^3(c+d x) (a \cos (c+d x)+a)^2}{6 d}\) |
\(\Big \downarrow \) 3115 |
\(\displaystyle \frac {\frac {3}{5} \left (\frac {1}{4} \left (5 a^3 (14 A+11 C) \left (\frac {\int 1dx}{2}+\frac {\sin (c+d x) \cos (c+d x)}{2 d}\right )-\frac {16 a^3 (5 A+4 C) \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}\right )+\frac {a^3 (10 A+9 C) \sin (c+d x) \cos ^3(c+d x)}{4 d}\right )+\frac {2 C \sin (c+d x) \cos ^3(c+d x) \left (a^3 \cos (c+d x)+a^3\right )}{5 d}}{6 a}+\frac {C \sin (c+d x) \cos ^3(c+d x) (a \cos (c+d x)+a)^2}{6 d}\) |
\(\Big \downarrow \) 24 |
\(\displaystyle \frac {\frac {3}{5} \left (\frac {a^3 (10 A+9 C) \sin (c+d x) \cos ^3(c+d x)}{4 d}+\frac {1}{4} \left (5 a^3 (14 A+11 C) \left (\frac {\sin (c+d x) \cos (c+d x)}{2 d}+\frac {x}{2}\right )-\frac {16 a^3 (5 A+4 C) \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}\right )\right )+\frac {2 C \sin (c+d x) \cos ^3(c+d x) \left (a^3 \cos (c+d x)+a^3\right )}{5 d}}{6 a}+\frac {C \sin (c+d x) \cos ^3(c+d x) (a \cos (c+d x)+a)^2}{6 d}\) |
(C*Cos[c + d*x]^3*(a + a*Cos[c + d*x])^2*Sin[c + d*x])/(6*d) + ((2*C*Cos[c + d*x]^3*(a^3 + a^3*Cos[c + d*x])*Sin[c + d*x])/(5*d) + (3*((a^3*(10*A + 9*C)*Cos[c + d*x]^3*Sin[c + d*x])/(4*d) + (5*a^3*(14*A + 11*C)*(x/2 + (Cos [c + d*x]*Sin[c + d*x])/(2*d)) - (16*a^3*(5*A + 4*C)*(-Sin[c + d*x] + Sin[ c + d*x]^3/3))/d)/4))/5)/(6*a)
3.1.9.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[sin[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> Simp[-d^(-1) Subst[Int[Exp and[(1 - x^2)^((n - 1)/2), x], x], x, Cos[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[(n - 1)/2, 0]
Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(-b)*Cos[c + d* x]*((b*Sin[c + d*x])^(n - 1)/(d*n)), x] + Simp[b^2*((n - 1)/n) Int[(b*Sin [c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && IntegerQ[ 2*n]
Int[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x _)]), x_Symbol] :> Simp[c Int[(b*Sin[e + f*x])^m, x], x] + Simp[d/b Int [(b*Sin[e + f*x])^(m + 1), x], x] /; FreeQ[{b, c, d, e, f, m}, x]
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Int[(a + b*Sin[e + f*x])^m*(A*c + (B*c + A*d)*Sin[e + f*x] + B*d*Sin[e + f*x]^2), x] /; FreeQ[{a, b, c, d, e, f, A, B, m}, x] && NeQ[b*c - a*d, 0]
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Sim p[(-b)*B*Cos[e + f*x]*(a + b*Sin[e + f*x])^(m - 1)*((c + d*Sin[e + f*x])^(n + 1)/(d*f*(m + n + 1))), x] + Simp[1/(d*(m + n + 1)) Int[(a + b*Sin[e + f*x])^(m - 1)*(c + d*Sin[e + f*x])^n*Simp[a*A*d*(m + n + 1) + B*(a*c*(m - 1 ) + b*d*(n + 1)) + (A*b*d*(m + n + 1) - B*(b*c*m - a*d*(2*m + n)))*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f, A, B, n}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && GtQ[m, 1/2] && !LtQ[n, -1 ] && IntegerQ[2*m] && (IntegerQ[2*n] || EqQ[c, 0])
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[(-C)*Co s[e + f*x]*((a + b*Sin[e + f*x])^(m + 1)/(b*f*(m + 2))), x] + Simp[1/(b*(m + 2)) Int[(a + b*Sin[e + f*x])^m*Simp[A*b*(m + 2) + b*C*(m + 1) + (b*B*(m + 2) - a*C)*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, e, f, A, B, C, m}, x] && !LtQ[m, -1]
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.)*((A_.) + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[(-C)*Cos[e + f*x]*(a + b*Sin[e + f*x])^m*((c + d*Sin[e + f*x])^(n + 1 )/(d*f*(m + n + 2))), x] + Simp[1/(b*d*(m + n + 2)) Int[(a + b*Sin[e + f* x])^m*(c + d*Sin[e + f*x])^n*Simp[A*b*d*(m + n + 2) + C*(a*c*m + b*d*(n + 1 )) + C*(a*d*m - b*c*(m + 1))*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f, A, C, m, n}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && !LtQ[m, -2^(-1)] && NeQ[m + n + 2, 0]
Time = 7.62 (sec) , antiderivative size = 108, normalized size of antiderivative = 0.56
method | result | size |
parallelrisch | \(\frac {\left (\left (16 A +\frac {31 C}{2}\right ) \sin \left (2 d x +2 c \right )+\frac {4 \left (4 A +5 C \right ) \sin \left (3 d x +3 c \right )}{3}+\left (A +\frac {5 C}{2}\right ) \sin \left (4 d x +4 c \right )+\frac {4 \sin \left (5 d x +5 c \right ) C}{5}+\frac {\sin \left (6 d x +6 c \right ) C}{6}+8 \left (6 A +5 C \right ) \sin \left (d x +c \right )+28 x d \left (A +\frac {11 C}{14}\right )\right ) a^{2}}{32 d}\) | \(108\) |
risch | \(\frac {7 a^{2} x A}{8}+\frac {11 a^{2} C x}{16}+\frac {3 \sin \left (d x +c \right ) A \,a^{2}}{2 d}+\frac {5 \sin \left (d x +c \right ) a^{2} C}{4 d}+\frac {a^{2} C \sin \left (6 d x +6 c \right )}{192 d}+\frac {a^{2} C \sin \left (5 d x +5 c \right )}{40 d}+\frac {\sin \left (4 d x +4 c \right ) A \,a^{2}}{32 d}+\frac {5 \sin \left (4 d x +4 c \right ) a^{2} C}{64 d}+\frac {\sin \left (3 d x +3 c \right ) A \,a^{2}}{6 d}+\frac {5 \sin \left (3 d x +3 c \right ) a^{2} C}{24 d}+\frac {\sin \left (2 d x +2 c \right ) A \,a^{2}}{2 d}+\frac {31 \sin \left (2 d x +2 c \right ) a^{2} C}{64 d}\) | \(190\) |
parts | \(\frac {\left (A \,a^{2}+a^{2} C \right ) \left (\frac {\left (\cos ^{3}\left (d x +c \right )+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )}{d}+\frac {A \,a^{2} \left (\frac {\cos \left (d x +c \right ) \sin \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )}{d}+\frac {a^{2} C \left (\frac {\left (\cos ^{5}\left (d x +c \right )+\frac {5 \left (\cos ^{3}\left (d x +c \right )\right )}{4}+\frac {15 \cos \left (d x +c \right )}{8}\right ) \sin \left (d x +c \right )}{6}+\frac {5 d x}{16}+\frac {5 c}{16}\right )}{d}+\frac {2 A \,a^{2} \left (2+\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )}{3 d}+\frac {2 a^{2} C \left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{5 d}\) | \(191\) |
derivativedivides | \(\frac {A \,a^{2} \left (\frac {\left (\cos ^{3}\left (d x +c \right )+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )+a^{2} C \left (\frac {\left (\cos ^{5}\left (d x +c \right )+\frac {5 \left (\cos ^{3}\left (d x +c \right )\right )}{4}+\frac {15 \cos \left (d x +c \right )}{8}\right ) \sin \left (d x +c \right )}{6}+\frac {5 d x}{16}+\frac {5 c}{16}\right )+\frac {2 A \,a^{2} \left (2+\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )}{3}+\frac {2 a^{2} C \left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{5}+A \,a^{2} \left (\frac {\cos \left (d x +c \right ) \sin \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )+a^{2} C \left (\frac {\left (\cos ^{3}\left (d x +c \right )+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )}{d}\) | \(211\) |
default | \(\frac {A \,a^{2} \left (\frac {\left (\cos ^{3}\left (d x +c \right )+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )+a^{2} C \left (\frac {\left (\cos ^{5}\left (d x +c \right )+\frac {5 \left (\cos ^{3}\left (d x +c \right )\right )}{4}+\frac {15 \cos \left (d x +c \right )}{8}\right ) \sin \left (d x +c \right )}{6}+\frac {5 d x}{16}+\frac {5 c}{16}\right )+\frac {2 A \,a^{2} \left (2+\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )}{3}+\frac {2 a^{2} C \left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{5}+A \,a^{2} \left (\frac {\cos \left (d x +c \right ) \sin \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )+a^{2} C \left (\frac {\left (\cos ^{3}\left (d x +c \right )+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )}{d}\) | \(211\) |
norman | \(\frac {\frac {a^{2} \left (14 A +11 C \right ) x}{16}+\frac {17 a^{2} \left (14 A +11 C \right ) \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{24 d}+\frac {a^{2} \left (14 A +11 C \right ) \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 d}+\frac {3 a^{2} \left (14 A +11 C \right ) x \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8}+\frac {15 a^{2} \left (14 A +11 C \right ) x \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{16}+\frac {5 a^{2} \left (14 A +11 C \right ) x \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4}+\frac {15 a^{2} \left (14 A +11 C \right ) x \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{16}+\frac {3 a^{2} \left (14 A +11 C \right ) x \left (\tan ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8}+\frac {a^{2} \left (14 A +11 C \right ) x \left (\tan ^{12}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{16}+\frac {a^{2} \left (50 A +53 C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{8 d}+\frac {a^{2} \left (430 A +331 C \right ) \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{20 d}+\frac {a^{2} \left (466 A +261 C \right ) \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{24 d}+\frac {a^{2} \left (530 A +501 C \right ) \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{20 d}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{6}}\) | \(329\) |
1/32*((16*A+31/2*C)*sin(2*d*x+2*c)+4/3*(4*A+5*C)*sin(3*d*x+3*c)+(A+5/2*C)* sin(4*d*x+4*c)+4/5*sin(5*d*x+5*c)*C+1/6*sin(6*d*x+6*c)*C+8*(6*A+5*C)*sin(d *x+c)+28*x*d*(A+11/14*C))*a^2/d
Time = 0.27 (sec) , antiderivative size = 126, normalized size of antiderivative = 0.65 \[ \int \cos ^2(c+d x) (a+a \cos (c+d x))^2 \left (A+C \cos ^2(c+d x)\right ) \, dx=\frac {15 \, {\left (14 \, A + 11 \, C\right )} a^{2} d x + {\left (40 \, C a^{2} \cos \left (d x + c\right )^{5} + 96 \, C a^{2} \cos \left (d x + c\right )^{4} + 10 \, {\left (6 \, A + 11 \, C\right )} a^{2} \cos \left (d x + c\right )^{3} + 32 \, {\left (5 \, A + 4 \, C\right )} a^{2} \cos \left (d x + c\right )^{2} + 15 \, {\left (14 \, A + 11 \, C\right )} a^{2} \cos \left (d x + c\right ) + 64 \, {\left (5 \, A + 4 \, C\right )} a^{2}\right )} \sin \left (d x + c\right )}{240 \, d} \]
1/240*(15*(14*A + 11*C)*a^2*d*x + (40*C*a^2*cos(d*x + c)^5 + 96*C*a^2*cos( d*x + c)^4 + 10*(6*A + 11*C)*a^2*cos(d*x + c)^3 + 32*(5*A + 4*C)*a^2*cos(d *x + c)^2 + 15*(14*A + 11*C)*a^2*cos(d*x + c) + 64*(5*A + 4*C)*a^2)*sin(d* x + c))/d
Leaf count of result is larger than twice the leaf count of optimal. 592 vs. \(2 (180) = 360\).
Time = 0.39 (sec) , antiderivative size = 592, normalized size of antiderivative = 3.05 \[ \int \cos ^2(c+d x) (a+a \cos (c+d x))^2 \left (A+C \cos ^2(c+d x)\right ) \, dx=\begin {cases} \frac {3 A a^{2} x \sin ^{4}{\left (c + d x \right )}}{8} + \frac {3 A a^{2} x \sin ^{2}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{4} + \frac {A a^{2} x \sin ^{2}{\left (c + d x \right )}}{2} + \frac {3 A a^{2} x \cos ^{4}{\left (c + d x \right )}}{8} + \frac {A a^{2} x \cos ^{2}{\left (c + d x \right )}}{2} + \frac {3 A a^{2} \sin ^{3}{\left (c + d x \right )} \cos {\left (c + d x \right )}}{8 d} + \frac {4 A a^{2} \sin ^{3}{\left (c + d x \right )}}{3 d} + \frac {5 A a^{2} \sin {\left (c + d x \right )} \cos ^{3}{\left (c + d x \right )}}{8 d} + \frac {2 A a^{2} \sin {\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{d} + \frac {A a^{2} \sin {\left (c + d x \right )} \cos {\left (c + d x \right )}}{2 d} + \frac {5 C a^{2} x \sin ^{6}{\left (c + d x \right )}}{16} + \frac {15 C a^{2} x \sin ^{4}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{16} + \frac {3 C a^{2} x \sin ^{4}{\left (c + d x \right )}}{8} + \frac {15 C a^{2} x \sin ^{2}{\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{16} + \frac {3 C a^{2} x \sin ^{2}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{4} + \frac {5 C a^{2} x \cos ^{6}{\left (c + d x \right )}}{16} + \frac {3 C a^{2} x \cos ^{4}{\left (c + d x \right )}}{8} + \frac {5 C a^{2} \sin ^{5}{\left (c + d x \right )} \cos {\left (c + d x \right )}}{16 d} + \frac {16 C a^{2} \sin ^{5}{\left (c + d x \right )}}{15 d} + \frac {5 C a^{2} \sin ^{3}{\left (c + d x \right )} \cos ^{3}{\left (c + d x \right )}}{6 d} + \frac {8 C a^{2} \sin ^{3}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{3 d} + \frac {3 C a^{2} \sin ^{3}{\left (c + d x \right )} \cos {\left (c + d x \right )}}{8 d} + \frac {11 C a^{2} \sin {\left (c + d x \right )} \cos ^{5}{\left (c + d x \right )}}{16 d} + \frac {2 C a^{2} \sin {\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{d} + \frac {5 C a^{2} \sin {\left (c + d x \right )} \cos ^{3}{\left (c + d x \right )}}{8 d} & \text {for}\: d \neq 0 \\x \left (A + C \cos ^{2}{\left (c \right )}\right ) \left (a \cos {\left (c \right )} + a\right )^{2} \cos ^{2}{\left (c \right )} & \text {otherwise} \end {cases} \]
Piecewise((3*A*a**2*x*sin(c + d*x)**4/8 + 3*A*a**2*x*sin(c + d*x)**2*cos(c + d*x)**2/4 + A*a**2*x*sin(c + d*x)**2/2 + 3*A*a**2*x*cos(c + d*x)**4/8 + A*a**2*x*cos(c + d*x)**2/2 + 3*A*a**2*sin(c + d*x)**3*cos(c + d*x)/(8*d) + 4*A*a**2*sin(c + d*x)**3/(3*d) + 5*A*a**2*sin(c + d*x)*cos(c + d*x)**3/( 8*d) + 2*A*a**2*sin(c + d*x)*cos(c + d*x)**2/d + A*a**2*sin(c + d*x)*cos(c + d*x)/(2*d) + 5*C*a**2*x*sin(c + d*x)**6/16 + 15*C*a**2*x*sin(c + d*x)** 4*cos(c + d*x)**2/16 + 3*C*a**2*x*sin(c + d*x)**4/8 + 15*C*a**2*x*sin(c + d*x)**2*cos(c + d*x)**4/16 + 3*C*a**2*x*sin(c + d*x)**2*cos(c + d*x)**2/4 + 5*C*a**2*x*cos(c + d*x)**6/16 + 3*C*a**2*x*cos(c + d*x)**4/8 + 5*C*a**2* sin(c + d*x)**5*cos(c + d*x)/(16*d) + 16*C*a**2*sin(c + d*x)**5/(15*d) + 5 *C*a**2*sin(c + d*x)**3*cos(c + d*x)**3/(6*d) + 8*C*a**2*sin(c + d*x)**3*c os(c + d*x)**2/(3*d) + 3*C*a**2*sin(c + d*x)**3*cos(c + d*x)/(8*d) + 11*C* a**2*sin(c + d*x)*cos(c + d*x)**5/(16*d) + 2*C*a**2*sin(c + d*x)*cos(c + d *x)**4/d + 5*C*a**2*sin(c + d*x)*cos(c + d*x)**3/(8*d), Ne(d, 0)), (x*(A + C*cos(c)**2)*(a*cos(c) + a)**2*cos(c)**2, True))
Time = 0.27 (sec) , antiderivative size = 204, normalized size of antiderivative = 1.05 \[ \int \cos ^2(c+d x) (a+a \cos (c+d x))^2 \left (A+C \cos ^2(c+d x)\right ) \, dx=-\frac {640 \, {\left (\sin \left (d x + c\right )^{3} - 3 \, \sin \left (d x + c\right )\right )} A a^{2} - 30 \, {\left (12 \, d x + 12 \, c + \sin \left (4 \, d x + 4 \, c\right ) + 8 \, \sin \left (2 \, d x + 2 \, c\right )\right )} A a^{2} - 240 \, {\left (2 \, d x + 2 \, c + \sin \left (2 \, d x + 2 \, c\right )\right )} A a^{2} - 128 \, {\left (3 \, \sin \left (d x + c\right )^{5} - 10 \, \sin \left (d x + c\right )^{3} + 15 \, \sin \left (d x + c\right )\right )} C a^{2} + 5 \, {\left (4 \, \sin \left (2 \, d x + 2 \, c\right )^{3} - 60 \, d x - 60 \, c - 9 \, \sin \left (4 \, d x + 4 \, c\right ) - 48 \, \sin \left (2 \, d x + 2 \, c\right )\right )} C a^{2} - 30 \, {\left (12 \, d x + 12 \, c + \sin \left (4 \, d x + 4 \, c\right ) + 8 \, \sin \left (2 \, d x + 2 \, c\right )\right )} C a^{2}}{960 \, d} \]
-1/960*(640*(sin(d*x + c)^3 - 3*sin(d*x + c))*A*a^2 - 30*(12*d*x + 12*c + sin(4*d*x + 4*c) + 8*sin(2*d*x + 2*c))*A*a^2 - 240*(2*d*x + 2*c + sin(2*d* x + 2*c))*A*a^2 - 128*(3*sin(d*x + c)^5 - 10*sin(d*x + c)^3 + 15*sin(d*x + c))*C*a^2 + 5*(4*sin(2*d*x + 2*c)^3 - 60*d*x - 60*c - 9*sin(4*d*x + 4*c) - 48*sin(2*d*x + 2*c))*C*a^2 - 30*(12*d*x + 12*c + sin(4*d*x + 4*c) + 8*si n(2*d*x + 2*c))*C*a^2)/d
Time = 0.29 (sec) , antiderivative size = 158, normalized size of antiderivative = 0.81 \[ \int \cos ^2(c+d x) (a+a \cos (c+d x))^2 \left (A+C \cos ^2(c+d x)\right ) \, dx=\frac {C a^{2} \sin \left (6 \, d x + 6 \, c\right )}{192 \, d} + \frac {C a^{2} \sin \left (5 \, d x + 5 \, c\right )}{40 \, d} + \frac {1}{16} \, {\left (14 \, A a^{2} + 11 \, C a^{2}\right )} x + \frac {{\left (2 \, A a^{2} + 5 \, C a^{2}\right )} \sin \left (4 \, d x + 4 \, c\right )}{64 \, d} + \frac {{\left (4 \, A a^{2} + 5 \, C a^{2}\right )} \sin \left (3 \, d x + 3 \, c\right )}{24 \, d} + \frac {{\left (32 \, A a^{2} + 31 \, C a^{2}\right )} \sin \left (2 \, d x + 2 \, c\right )}{64 \, d} + \frac {{\left (6 \, A a^{2} + 5 \, C a^{2}\right )} \sin \left (d x + c\right )}{4 \, d} \]
1/192*C*a^2*sin(6*d*x + 6*c)/d + 1/40*C*a^2*sin(5*d*x + 5*c)/d + 1/16*(14* A*a^2 + 11*C*a^2)*x + 1/64*(2*A*a^2 + 5*C*a^2)*sin(4*d*x + 4*c)/d + 1/24*( 4*A*a^2 + 5*C*a^2)*sin(3*d*x + 3*c)/d + 1/64*(32*A*a^2 + 31*C*a^2)*sin(2*d *x + 2*c)/d + 1/4*(6*A*a^2 + 5*C*a^2)*sin(d*x + c)/d
Time = 2.64 (sec) , antiderivative size = 315, normalized size of antiderivative = 1.62 \[ \int \cos ^2(c+d x) (a+a \cos (c+d x))^2 \left (A+C \cos ^2(c+d x)\right ) \, dx=\frac {\left (\frac {7\,A\,a^2}{4}+\frac {11\,C\,a^2}{8}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{11}+\left (\frac {119\,A\,a^2}{12}+\frac {187\,C\,a^2}{24}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9+\left (\frac {43\,A\,a^2}{2}+\frac {331\,C\,a^2}{20}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7+\left (\frac {53\,A\,a^2}{2}+\frac {501\,C\,a^2}{20}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+\left (\frac {233\,A\,a^2}{12}+\frac {87\,C\,a^2}{8}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+\left (\frac {25\,A\,a^2}{4}+\frac {53\,C\,a^2}{8}\right )\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{12}+6\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}+15\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8+20\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+15\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+6\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}-\frac {a^2\,\left (14\,A+11\,C\right )\,\left (\mathrm {atan}\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )-\frac {d\,x}{2}\right )}{8\,d}+\frac {a^2\,\mathrm {atan}\left (\frac {a^2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (14\,A+11\,C\right )}{8\,\left (\frac {7\,A\,a^2}{4}+\frac {11\,C\,a^2}{8}\right )}\right )\,\left (14\,A+11\,C\right )}{8\,d} \]
(tan(c/2 + (d*x)/2)*((25*A*a^2)/4 + (53*C*a^2)/8) + tan(c/2 + (d*x)/2)^11* ((7*A*a^2)/4 + (11*C*a^2)/8) + tan(c/2 + (d*x)/2)^3*((233*A*a^2)/12 + (87* C*a^2)/8) + tan(c/2 + (d*x)/2)^9*((119*A*a^2)/12 + (187*C*a^2)/24) + tan(c /2 + (d*x)/2)^7*((43*A*a^2)/2 + (331*C*a^2)/20) + tan(c/2 + (d*x)/2)^5*((5 3*A*a^2)/2 + (501*C*a^2)/20))/(d*(6*tan(c/2 + (d*x)/2)^2 + 15*tan(c/2 + (d *x)/2)^4 + 20*tan(c/2 + (d*x)/2)^6 + 15*tan(c/2 + (d*x)/2)^8 + 6*tan(c/2 + (d*x)/2)^10 + tan(c/2 + (d*x)/2)^12 + 1)) - (a^2*(14*A + 11*C)*(atan(tan( c/2 + (d*x)/2)) - (d*x)/2))/(8*d) + (a^2*atan((a^2*tan(c/2 + (d*x)/2)*(14* A + 11*C))/(8*((7*A*a^2)/4 + (11*C*a^2)/8)))*(14*A + 11*C))/(8*d)